<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // console.log(this);
    // console.log(window);
    // console.log(window === this);


    function fn(){
        console.log(this);
    }
    fn();

    var obj = {
        name:"obj",
        abc: fn
    }
    obj.abc();

    function fun( a ){
        a();
    }
    fun( fn );

    document.onclick = fn;

    fun( obj.abc )

    // 执行的标志：xxx()

    setTimeout(obj.abc, 1000);

    var obj2 = {
        name:"obj2",
        qwe:function(q){
            q()
        }
    }
    obj2.qwe( obj.abc );


    
</script>
</html>